home *** CD-ROM | disk | FTP | other *** search
/ Champak 112 / jogo-disk-112.iso / Games / fish_water_challenge.swf / scripts / DefineButton2_96 / BUTTONCONDACTION on(keyPress Left).as
Text File  |  2010-07-14  |  280b  |  12 lines

  1. on(keyPress "<Left>"){
  2.    if("20" < getProperty("/riff", _X) and getProperty("/riff", _currentframe) < "30")
  3.    {
  4.       setProperty("/riff", _X, getProperty("/riff", _X) - "20");
  5.    }
  6.    tellTarget("/riff/ripples")
  7.    {
  8.       gotoAndStop("lefty");
  9.       play();
  10.    }
  11. }
  12.